export default [
  {
    path: "homepage",
    name: "homepage",
    meta: {
      anonymity: true
    },
    component: () => import("@/pages/ojPage/homePage/homePage.vue"),
  },
  {
    path: "race",
    name: "race",
    meta: {
      anonymity: true
    },
    component: () => import("@/pages/ojPage/race/race.vue"),
  },
  {
    path: "race-detail/:rid",
    name: "raceing",
    meta: {
      anonymity: true
    },
    component: () => import("@/pages/ojPage/race/raceDetail.vue"),
  },
  {
    path: "racePage/:rid",
    name: "raceing-page",
        meta: {
      anonymity: true
    },
    component: () => import("@/pages/ojPage/race/raceMoreDetail.vue"),
    children: [
      {
        path: "problem",
        name: "raceing-problem",
        component: () => import("@/components/ojComponents/race/raceProblem.vue"),
      },
      {
        path: "evaluation",
        name: "raceing-evaluation",
        component: () => import("@/components/ojComponents/race/raceEvoluation.vue"),
      },
      {
        path: "evaluation/:submitId",
        name: "raceing-evaDetail",
        component: () => import("@/pages/ojPage/evaluation/components/evaluationDetail.vue"),
      },
      {
        path: "notice",
        name: "raceing-notice",
        component: () => import("@/components/ojComponents/race/raceNotice.vue"),
      },
      {
        path: "rank",
        name: "raceing-rank",
        component: () => import("@/components/ojComponents/race/raceRank.vue"),
      },
      {
        path: "closedList",
        name: "raceing-closedList",
        component: () => import("@/components/ojComponents/race/raceRank.vue")
      }
    ]
  },
  {
    path: "racePage/:rid/problem/:pid",
    name: "raceing-quiz",
    component: () => import("@/pages/ojPage/quiz/quiz.vue"),
  },
  {
    path: "bank",
    name: "bank",
    meta: {
      anonymity: true
    },
    component: () => import("@/pages/ojPage/bank/bank.vue"),
  },
  {
    path: "bank/:pid",
    name: 'complier',
    meta: {
      anonymity: true
    },
    component: () => import("@/pages/ojPage/quiz/quiz.vue"),
  },
  {
    path: "training",
    name: "training",
    meta: {
      anonymity: true
    },
    component: () => import("@/pages/ojPage/training/training.vue"),
  },
  {
    path: "training-detail/:tid",
    name: "training-detail",
    component: () => import("@/pages/ojPage/training/components/trainingDetail.vue"),
  },
  {
    path: "evaluation",
    name: "evaluation",
    meta: {
      anonymity: true
    },
    component: () => import("@/pages/ojPage/evaluation/evaluation.vue"),
  },
  {
    path: "evaluation-detail/:submitId",
    name: "evaluation-detail",
    component: () => import("@/pages/ojPage/evaluation/components/evaluationDetail.vue"),
  },
  {
    path: "ranking",
    name: "ranking",
    meta: {
      anonymity: true
    },
    component: () => import("@/pages/ojPage/ranking/ranking.vue"),
  },
  {
    path: "discuss",
    name: "discuss",
    meta: {
      anonymity: true
    },
    component: () => import("@/pages/ojPage/discuss/discuss.vue"),
  },
  {
    path: "us",
    name: "aboutUs",
    meta: {
      anonymity: true
    },
    component: () => import("@/pages/ojPage/aboutUs/aboutUs.vue"),
  },
  {
    path: "discuss-detail/:discussId",
    name: "discuss-detail",
    component: () => import("@/pages/ojPage/discuss/discussDetail.vue"),
  },
  {
    path: "userInfo",
    redirect: "userInfo/info",
  },
  {
    path: "userInfo",
    name: "userInfo",
    component: () => import("@/pages/ojPage/userInfo/userInfo.vue"),
    children: [
      {
        path: "info",
        component: () => import("@/components/ojComponents/userInfo/info.vue"),
      },
      {
        path: "acount",
        component: () =>
          import("@/components/ojComponents/userInfo/acount.vue"),
      },
    ],
  },
  {
    path: "notice",
    redirect: "notice/discuss",
  },
  {
    path: "notice",
    component: () => import("@/pages/ojPage/notice/notice.vue"),
    children: [
      {
        path: "discuss",
        component: () => import("@/components/ojComponents/notice/discuss.vue"),
      },
      {
        path: "like",
        component: () => import("@/components/ojComponents/notice/like.vue"),
      },
      {
        path: "mine",
        component: () => import("@/components/ojComponents/notice/mine.vue"),
      },
      {
        path: "reply",
        component: () => import("@/components/ojComponents/notice/reply.vue"),
      },
      {
        path: "sys",
        component: () => import("@/components/ojComponents/notice/sys.vue"),
      },
    ],
  },
]
